{% extends "base.html" %}
{% block title %} Список грузов {% endblock %}

{% block css-js %}
{#    {% load static %}#}
{#    <script src="{% static '' %}"></script>#}
{% endblock %}

{% block content %}

    <div class="container position-relative">
        <div class="centered d-flex flex-column bd-highlight mb-3">
            <form action="{% url 'cargo_update' pk=cargo.pk %}" method="post">
                {% csrf_token %}
                {% for foo in form %}
                    <div class="d-flex justify-content-between">
                        {{ foo.label }}
                    </div>
                    <div class="d-flex justify-content-between">
                        {{ foo }}
                    </div>
                {% endfor %}
                <input class="m-3 btn btn-success d-flex justify-content-evenly" type="submit" value="Сохранить">
            </form>
        </div>

        <div class="position-absolute top-0 end-0">
            <form action="{% url 'cargo_delete' pk=cargo.pk %}" method="post">
                {% csrf_token %}
                <input class="btn btn-info m-2" type="submit" value="Удалить груз">
            </form>
        </div>
    </div>




{% endblock %}